package weixinkeji.dev.dc.base.scheme.combo.check;

import sys.wx.c.components.check.CheckService;
import sys.wx.c.components.check.bean.CheckData;

public class CheckCombo {

    public CheckData doCombo(boolean idcheck) {
        CheckData cd = CheckService.getCheckData();
        cd.put("combo_id", CheckData.ID, idcheck)
                .put("flid", CheckData.TEXT_L + "{1,26}", true)
                .put("combo_code", CheckData.TEXT_L + "{1,26}", true)
                .put("combo_name", CheckData.TEXT_L + "{1,26}", true)
                .put("combo_style", CheckData.VALUE_0_1 + "{1}", true)
                .put("combo_price", CheckData.NUMBER, true)
                .put("combo_listPriceSum", CheckData.NUMBER, false)
                .put("combo_number", CheckData.NUMBER, true)
                .put("combo_info", CheckData.TEXT_L + "{1,50}", false);
        return cd;
    }

    public CheckData doComboB(boolean idcheck) {
        CheckData cd = CheckService.getCheckData();
        cd.put("combo_id", CheckData.ID, idcheck)//表头ID,添加时还没有确定。修改时必需！
                //                .put("combob_id", CheckData.ID, idcheck)//ID,添加时还没有确定。修改时也不用(通过删除旧的，再添加新的来改变)
                .put("food_id", CheckData.ID, true)//食物主键
                .put("food_number", CheckData.NUMBER, true)
                .put("food_price", CheckData.NUMBER, true)
                .put("food_priceSum", CheckData.NUMBER, true);
        return cd;
    }
//    private Double food_number;
//    private Double food_price;
//    private Double food_priceSum;
}
